package com.shenyi.wx.api;

import com.shenyi.wx.entity.CartDO;

import java.util.List;
import java.util.Map;

/**
 * @author richard.fan
 * @version 1.0
 * @date 2018/11/06
 * @desc
 * @see
 * @since 1.0
 */
public interface IApiCartService {

    CartDO queryObject(Integer id);


    List<CartDO> queryList(Map<String, Object> map);


    int queryTotal(Map<String, Object> map);


    void save(CartDO cart);

    void update(CartDO cart);


    void delete(Integer id);

    void deleteBatch(Integer[] ids);

    void updateCheck(String[] productIds, Integer isChecked, Long userId);

    void deleteByProductIds(String[] productIds);

    void deleteByUserAndProductIds(Long userId, String[] productIds);

    void deleteByCart(Long user_id, Integer session_id, Integer checked);

}
